home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1994 April / Inside Multimedia CD-ROM (April 1994).iso / prg / gs / gssource.exe / VMS-CC.MAK < prev    next >
Encoding:
Text File  |  1992-08-24  |  6.2 KB  |  264 lines

  1. $ !    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. $ !    Distributed by Free Software Foundation, Inc.
  3. $ !
  4. $ ! This file is part of Ghostscript.
  5. $ !
  6. $ ! Ghostscript is distributed in the hope that it will be useful, but
  7. $ ! WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. $ ! to anyone for the consequences of using it or for whether it serves any
  9. $ ! particular purpose or works at all, unless he says so in writing.  Refer
  10. $ ! to the Ghostscript General Public License for full details.
  11. $ !
  12. $ ! Everyone is granted permission to copy, modify and redistribute
  13. $ ! Ghostscript, but only under the conditions described in the Ghostscript
  14. $ ! General Public License.  A copy of this license is supposed to have been
  15. $ ! given to you along with Ghostscript so you can know your rights and
  16. $ ! responsibilities.  It should be in a file named COPYING.  Among other
  17. $ ! things, the copyright notice and this notice must be preserved on all
  18. $ ! copies.
  19. $ !
  20. $ !
  21. $ ! "makefile" for Ghostscript, VMS / VMS C / DECwindows (X11) configuration.
  22. $ !
  23. $ !
  24. $ ! Execute this command file while in the GhostScript directory!
  25. $ !
  26. $ !
  27. $ ! To build a debugging configuration, issue the command:
  28. $ !
  29. $ !          $ @VMS-CC.MAK DEBUG
  30. $ !
  31. $ ! Do not  abbreviate "DEBUG".  To specify an alternate directory for
  32. $ ! GS_LIB_DEFAULT, issue the command:
  33. $ !
  34. $ !          $ @VMS-CC.MAK directory
  35. $ !
  36. $ ! with "directory" a fully qualified directory name.  "directory" cannot
  37. $ ! be DEBUG (otherwise it will be confused with the DEBUG switch).  Both
  38. $ ! the DEBUG switch and a directory name may be specified on the same
  39. $ ! command line and in either order.
  40. $ !
  41. $ CDEF = ""
  42. $ LDEF = ""
  43. $ !
  44. $ GS_INIT = "GS_INIT.PS"
  45. $ GS_LIB_DEFAULT = F$ENVIRONMENT("DEFAULT")
  46. $ IF P1 .NES. "" .AND. P1 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P1
  47. $ IF P2 .NES. "" .AND. P2 .NES. "DEBUG" THEN GS_LIB_DEFAULT = P2
  48. $ !
  49. $ IF P1 .NES. "DEBUG" .AND. P2 .NES. "DEBUG" THEN GOTO NODEBUG
  50. $ CDEF = "/DEFINE=(""DEBUG"")/NOOPTIMIZE/DEBUG"
  51. $ LDEF = "/DEBUG"
  52. $ !
  53. $ NODEBUG:
  54. $ !
  55. $ ! Give ourself a healthy search list for C include files
  56. $ !
  57. $ DEFINE C$INCLUDE 'F$ENVIRONMENT("DEFAULT"),DECW$INCLUDE,SYS$LIBRARY
  58. $ DEFINE VAXC$INCLUDE C$INCLUDE
  59. $ DEFINE SYS SYS$LIBRARY
  60. $ !
  61. $ ! Compile genarch.c and then run it to create the arch.h header file
  62. $ !
  63. $ CC/NOLIST/OBJECT=GENARCH.OBJ GENARCH.C
  64. $ LINK/NOMAP/EXE=GENARCH.EXE GENARCH,SYS$INPUT/OPT
  65. SYS$SHARE:VAXCRTL/SHARE
  66. $ GENARCH = "$" + F$ENVIRONMENT("DEFAULT") + "GENARCH.EXE"
  67. $ GENARCH ARCH.H
  68. $ DELETE GENARCH.EXE.*,GENARCH.OBJ.*
  69. $ PURGE ARCH.H
  70. $ !
  71. $ !
  72. $ ! Create a minimal gconfig.h.  To add devices, look in DEVS.MAK to find
  73. $ ! the files that comprise the driver, and add them to the compilation
  74. $ ! and linking lists below.  Then add a line below the CREATE of the form
  75. $ !    device_(gs_the-device-name_device)
  76. $ ! e.g.
  77. $ !    device_(gs_bj10e_device)
  78. $ ! To incorporate compiled fonts, add the line
  79. $ !    oper_(ccfonts_op_defs)
  80. $ ! and then, for each font name XYZ, a line of the form
  81. $ !    font_("0.font_XYZ",gsf_XYZ,zf_XYZ)
  82. $ ! Also add the name ICCFONT and the names of the compiled fonts
  83. $ ! to the compilation and linking lists.
  84. $ !
  85. $ !
  86. $ CREATE GCONFIG.H
  87. device_(gs_x11_device)
  88. $ !
  89. $ ! Create an empty object library
  90. $ !
  91. $ LIBRARY/CREATE GS.OLB
  92. $ !
  93. $ !
  94. $ ! Create a list of modules to compile and store in the object library
  95. $ !
  96. $ CREATE MODULES.LIS
  97. GDEVMEM1
  98. GDEVMEM2
  99. GDEVMEM3
  100. GP_VMS
  101. GSCHAR
  102. GSCHAR0
  103. GSCIE
  104. GSCOLOR
  105. GSCOLOR2
  106. GSCOORD
  107. GSDEVICE
  108. GSDPS1
  109. GSFILE
  110. GSFONT
  111. GSIMAGE
  112. GSIMAGE2
  113. GSIMPATH
  114. GSLINE
  115. GSMATRIX
  116. GSMISC
  117. GSPAINT
  118. GSPATH
  119. GSPATH2
  120. GSSTATE
  121. GSTDEV
  122. GSTYPE1
  123. GSUTIL
  124. GXCACHE
  125. GXCLIST
  126. GXCOLOR
  127. GXCPATH
  128. GXDITHER
  129. GXDRAW
  130. GXFILL
  131. GXHINT1
  132. GXHT
  133. GXPATH
  134. GXPATH2
  135. GXPCOPY
  136. GXSTROKE
  137. IALLOC
  138. IBNUM
  139. IBSCAN
  140. ICCFONT
  141. IDEBUG
  142. IDICT
  143. IDPARAM
  144. IINIT
  145. INAME
  146. INTERP
  147. ISAVE
  148. ISCAN
  149. IUTIL
  150. SCFD
  151. SCFE
  152. SFILTER
  153. SFILTER2
  154. SLZWD
  155. SLZWE
  156. STREAM
  157. ZARITH
  158. ZARRAY
  159. ZBSEQ
  160. ZCHAR
  161. ZCIE
  162. ZCOLOR
  163. ZCOLOR2
  164. ZCONTROL
  165. ZDEVICE
  166. ZDICT
  167. ZDPS1
  168. ZFILE
  169. ZFILEIO
  170. ZFILTER
  171. ZFILTER2
  172. ZFONT
  173. ZFONT0
  174. ZFONT1
  175. ZFONT2
  176. ZGENERIC
  177. ZGSTATE
  178. ZHT
  179. ZIMAGE2
  180. ZMATH
  181. ZMATRIX
  182. ZMISC
  183. ZPACKED
  184. ZPAINT
  185. ZPATH
  186. ZPATH2
  187. ZPROPS
  188. ZRELBIT
  189. ZSTACK
  190. ZSTRING
  191. ZTYPE
  192. ZUPATH
  193. ZVMEM
  194. $ !
  195. $ !
  196. $ ! NOW COMPILE AWAY!
  197. $ !
  198. $ OPEN/READ MODULE_LIST MODULES.LIS
  199. $ !
  200. $ COMPILE_LOOP:
  201. $ READ/END=END_COMPILE MODULE_LIST MODULE
  202. $ CC'CDEF/NOLIST/OBJECT='MODULE'.OBJ 'MODULE'.C
  203. $ LIBRARY/INSERT GS.OLB 'MODULE'.OBJ
  204. $ DELETE 'MODULE'.OBJ.*
  205. $ GOTO COMPILE_LOOP
  206. $ !
  207. $ END_COMPILE:
  208. $ CLOSE MODULE_LIST
  209. $ DELETE MODULES.LIS.*
  210. $ !
  211. $ !
  212. $ ! Is the DECwindows environment about?  Must be installed in order to
  213. $ ! build the executable program gs.exe.
  214. $ !
  215. $ IF F$SEARCH("SYS$SHARE:DECW$XLIBSHR.EXE") .NES. "" THEN GOTO CHECK2
  216. $ WRITE SYS$OUTPUT "DECwindows user environment not installed;"
  217. $ WRITE SYS$OUTPUT "unable to build executable programs."
  218. $ GOTO DONE
  219. $ !
  220. $ CHECK2:
  221. $ IF F$TRNLNM("DECW$INCLUDE") .NES. "" THEN GOTO BUILD_EXES
  222. $ WRITE SYS$OUTPUT "You must invoke @DECW$STARTUP before using this"
  223. $ WRITE SYS$OUTPUT "command procedure to build the executable programs."
  224. $ GOTO DONE
  225. $ !
  226. $ ! Build the executables
  227. $ !
  228. $ BUILD_EXES:
  229. $ !
  230. $ DEFINE X11 DECW$INCLUDE
  231. $ !
  232. $ LIBDEF = """GS_LIB_DEFAULT=""""" + ''GS_LIB_DEFAULT' + """"""""
  233. $ INIDEF = """GS_INIT=""""" + ''GS_INIT' + """"""""
  234. $ CC'CDEF/NOLIST/DEFINE=('LIBDEF','INIDEF')/OBJECT=GCONFIG.OBJ GCONFIG.C
  235. $ !
  236. $ CC'CDEF/NOLIST/OBJECT=GDEVXINI.OBJ GDEVXINI.C
  237. $ !
  238. $ CC'CDEF/NOLIST/OBJECT=GDEVX.OBJ GDEVX.C
  239. $ !
  240. $ CC'CDEF/NOLIST/OBJECT=GSMAIN.OBJ GSMAIN.C
  241. $ !
  242. $ CC'CDEF/NOLIST/OBJECT=GS.OBJ GS.C
  243. $ LINK'LDEF/NOMAP/EXE=GS.EXE GS,GSMAIN,GDEVX,GDEVXINI,GCONFIG,-
  244.   GS/LIB/INCLUDE=(GDEVMEM1,GDEVMEM2,GDEVMEM3,GXCLIST,-
  245.   ZARITH,ZARRAY,ZBSEQ,ZCHAR,ZCOLOR,ZCOLOR2,ZCONTROL,ZDEVICE,ZDPS1,-
  246.   ZDICT,ZFILE,ZFILEIO,ZFILTER,ZFILTER2,ZFONT,ZFONT0,ZFONT1,ZFONT2,-
  247.   ZGENERIC,ZGSTATE,ZHT,ZIMAGE2,ZMATH,ZMATRIX,ZMISC,-
  248.   ZPACKED,ZPAINT,ZPATH,ZPATH2,-
  249.   ZPROPS,ZRELBIT,ZSTACK,ZSTRING,ZTYPE,ZUPATH,ZVMEM),SYS$INPUT/OPT
  250. SYS$SHARE:DECW$DWTLIBSHR/SHARE,SYS$SHARE:DECW$XLIBSHR.EXE/SHARE
  251. $ !
  252. $ DELETE GDEVX.OBJ.*,GDEVXINI.OBJ.*,GSMAIN.OBJ.*,GS.OBJ.*,-
  253.          GCONFIG.OBJ.*
  254. $ !
  255. $ DEASSIGN X11
  256. $ !
  257. $ DONE:
  258. $ !
  259. $ DEASSIGN C$INCLUDE
  260. $ DEASSIGN VAXC$INCLUDE
  261. $ DEASSIGN SYS
  262. $ !
  263. $ ! ALL DONE
  264.